$$w(n)=\left\{
\begin{aligned}
1 \quad &0\le n\le L-1\\
0 \quad & else
\end{aligned}
\right.$$
